import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  list: '/sign/list',
  reviewList: '/sign/reviewList',
  add:'/sign/add',
  detail: '/sign/info',
  edit: '/sign/edit',
  del: '/sign/del',
  savePayImage: '/sign/savePayImage',
  saveFile: '/sign/saveFile',
}

/**
 * 报名列表记录
 */
export function list (params) {
  return axios({
    url: api.list,
    method: 'get',
    params
  })
}
//考级列表
export function reviewList (params) {
  return axios({
    url: api.reviewList,
    method: 'get',
    params
  })
}
export function add (data) {
  return axios({
    url: api.add,
    method: 'post',
    data
  })
}

export function edit (params) {
  return axios({
    url: api.edit,
    method: 'post',
    params
  })
}
/**
 * 详情记录
 */
export function detail (params) {
  return axios({
    url: api.detail,
    method: 'get',
    params
  })
}

/**
 * 删除记录
 */
export function del (params) {
  return axios({
    url: api.del,
    method: 'get',
    params
  })
}

//保存支付截图
export function savePayImage (data) {
  return axios({
    url: api.savePayImage,
    method: 'post',
    data
  })
}

//保存作品
export function saveFile (data) {
  return axios({
    url: api.saveFile,
    method: 'post',
    data
  })
}
